<!DOCTYPE html>
<html>
<head th:include="cultivateWeb/header :: culHeaderCss">
</head>
<link rel="stylesheet" href="/css/certificateWeb/workNews/workNews.css">
<link type="text/css" href="/css/cultivateWeb/style/my.css" rel="stylesheet">
<body>
<!-- 顶部导航 -->
<header th:include="cultivateWeb/header :: header"></header>
<div style="clear: both"></div>
<div style="background-color: #f7f7f7; ">
    <div style="height: 40px">
        <p style="margin: 0px auto auto 380px; line-height: 40px">当前位置：<a href="/cultivate/homepage">首页</a> > 个人资料</p>
    </div>
    <hr style="margin: 0 auto ; width: 1200px"/>
    <section class="sec_1" style="background:#F7F7F7;padding-top: 0">
        <div class="div_1">
            <ul>
                <li class="this"><a href="/cultivate/my">个人资料</a></li>
                <li><a href="/cultivate/myOrder">我的订单</a></li>
                <li><a href="/cultivate/myCourse">我的课程</a></li>
                <li><a href="/cultivate/studyRecord">学习记录</a></li>
                <li><a href="/cultivate/myResume">我的简历</a></li>
                <li><a href="/cultivate/deliverRecord">投递记录</a></li>
                <li><a href="/cultivate/applyRecord">申请记录</a></li>
                <li><a href="/cultivate/myMessage">消息中心</a></li>
                <li><a href="/cultivate/myCertificates">我的证书</a></li>
                <li><a href="/certificate/mock?grade=2" target="_blank">幼儿照护初级模拟考试</a></li>
                <li><a href="/certificate/mock?grade=1" target="_blank">幼儿照护中级模拟考试</a></li>
                <li><a href="/certificate/mock?grade=0" target="_blank">幼儿照护高级模拟考试</a></li>
            </ul>
        </div>
        <div class="div_2">
            <label class="label_title">个人信息</label>
            <label style="float: right; font-size: 14px; margin:20px 25px 0 0">
                <a href="/cultivate/editMy">
                    <input type="button" value="编辑资料"
                           style="background:#fe7252;cursor: pointer; border: 0; color: white; width: 95px; height: 30px; border-radius: 3px"/>
                </a>
            </label>
            <hr/>
            <div id="info"></div>
        </div>
        <div style="clear: both"></div>
    </section>
</div>
<!-- footer ------------------------------------------------------- -->
<div class="footer" th:include="cultivateWeb/header :: footer"></div>
</body>
<script>
    $(function () {
        ajaxToken("/jzApi/user/selUserDetail", "GET", {}, function (res) {
            var res = JSON.stringify(res);
            res = res.replace(/null/g, '""');
            res = JSON.parse(res);
            var sex = '', type = '';
            if (res.sex == 1) {
                sex = '男'
            }
            if (res.sex == 2) {
                sex = '女'
            }
            if (res.sex == 0) {
                sex = '未知'
            }
            if (res.type == 1) {
                type = '机构会员'
            }
            if (res.type == 2) {
                type = '运营会员'
            }
            if (res.type == 0) {
                type = '个人会员'
            }
            var a = '    <div class="my_div ">' +
                '            <span class="my_1"><img src="' + res.headPortrait + '" style="width: 147px;height: 206px;" /></span>' +
                '            <div>' +
                '                <span class="my_2">用户名：<span>' + res.username + '</span></span>' +
                '                <span class="my_2">真实姓名：<span>' + res.name + '</span></span>' +
                '                <span class="my_2">手机号：<span>' + res.mobile + '</span></span>' +
                '                <span class="my_2">性别：<span>' + sex + '</span></span>' +
                '                <span class="my_2">出生年月：<span>' + res.dateOfBirth + '</span></span>' +
                '                <span class="my_2">所属机构：<span>' + res.orgName + '</span></span>' +
                '                <span class="my_2">邮箱：<span>' + res.email + '</span></span>' +
                // '                <span class="my_2">爱好：<span>' + res.hobby + '</span></span>' +
                '                <span class="my_2">QQ：<span>' + res.qq + '</span></span>' +
                '                <span class="my_2">类型：<span>' + type + '</span></span>' +
                '                <span class="my_2">民族：<span>' + res.nation + '</span></span>' +
                '                <span class="my_2">所在省市区：<span>' + res.province + res.city + res.district + '</span></span>' +
                '                <span class="my_2">现居详细地址：<span>' + res.liveAddress + '</span></span>' +
                '                <span class="my_2">学历：<span>' + res.education + '</span></span>' +
                '                <span class="my_2">专业：<span>' + res.major + '</span></span>' +
                '                <span class="my_2">政治面貌：<span>' + res.politicalAffiliation + '</span></span>' +
                '                <span class="my_2">职务职称：<span>' + res.officialCapacity + '</span></span>' +
                '                <span style="width:760px; text-align: left;display: inline-block;float: left;font-size: 16px; margin-left:100px;line-height: 40px;">学习、工作经历：<span>' + res.experience + '</span></span>' +
                '            </div>' +
                '        </div> <div style="clear: both"></div>';
            $("#info").html(a)
        });
    })


</script>
</html>